<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>

<div class="form " style="text-align: left;text-align: left;
width: 500px;
box-shadow: 1px 2px 5px #000;
margin: 50px auto;">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions' => array(
		'class' => 'form-horizontal',
	)
)); ?>
    <div class="control-group">    
       <h2 style="text-align:center;"><?php echo Yii::t("msg", "0008");?></h2>
    </div>

    <div class="control-group">
        <?php echo $form->label($model,'username',array('class' => 'control-label')); ?>
        <div class="controls">
            <?php echo $form->textField($model,'username', array('class' => 'span3'));?>
            <?php echo $form->error($model,'username',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
        </div>
    </div>

    <div class="control-group">
        <?php echo $form->label($model,'password',array('class' => 'control-label')); ?>
        <div class="controls">
            <?php echo $form->passwordField($model,'password', array('class' => 'span3'));?>
            <?php echo $form->error($model,'password',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
        </div>
    </div>

    <div class="control-group">
        <?php echo $form->label($model,'security_code',array('class' => 'control-label')); ?>
        <div class="controls">
            <?php echo $form->passwordField($model,'security_code', array('class' => 'span3'));?>
            <?php echo $form->error($model,'security_code',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
        </div>
    </div>

    <div class="control-group rememberMe">
        <div class="controls">
            <?php echo $form->checkbox($model,'rememberMe', array('class' => 'pull-left'));?>
            <?php echo $form->error($model,'rememberMe',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
        </div>
        <?php echo $form->label($model,'rememberMe',array('class' => 'control-label')); ?>
    </div>
    <div class="form-actions">
        <button type="submit" class="btn btn-primary"><?php echo Yii::t("lbl", "0011");?></button>
        <button type="reset" class="btn" ><?php echo Yii::t("lbl", "0002");?></button>
    </div>
<?php $this->endWidget(); ?>
</div><!-- form -->
